<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>苹果后台管理系统</title>
<script type="text/javascript" src="${path}/js/back/jquery.min.js"></script>
<script type="text/javascript"
	src="${path}/js/back/jquery.easyui.min.js"></script>
<script type="text/javascript"
	src="${path}/js/back/easyui-lang-zh_CN.js"></script>
<script type="text/javascript"
	src="${path}/js/back/datagrid-detailview.js"></script>
<link rel="stylesheet" href="${path}/css/back/themes/default/easyui.css"
	type="text/css" />
<link rel="stylesheet" href="${path}/css/back/themes/icon.css"
	type="text/css" />
<link rel="stylesheet" type="text/css"
	href="${path}/css/back/demo.css">
	
	<script type="text/javascript">
		function showcontent(language) {
			$('#content').html(language);
		}
		function addTab(title, url){
			if ($('#content').tabs('exists', title)){
				$('#content').tabs('select', title);
			} else {
				var content = '<iframe scrolling="auto" frameborder="0"  src="'+url+'" style="width:100%;height:100%;"></iframe>';
				$('#content').tabs('add',{
					title:title,
					content:content,
					closable:true
				});
			}
		}
	</script>
</head>
<body>
	<div class="easyui-layout" style="width: auto; height: 568px;">
		<div region="west" split="true" title="管理选择面板" style="width: 300px;height :568px">
			<div class="easyui-accordion" style="width: auto; height: 500px;">
				<div title="用户管理" iconCls="icon-ok" selected="true"
					style="overflow: auto; padding: 10px;">
					<ul>
						<li><a href="#" class="easyui-linkbutton" onclick="addTab('用户列表','${path}/manager/toUserEdit')">用户列表</a></li>
					</ul>
				</div>
				<div title="商品管理" iconCls="icon-ok"
					style="overflow: auto; padding: 10px;">
					<ul>
						<li><a href="#" class="easyui-linkbutton" onclick="addTab('商品列表','${path}/BackGoods/toGoodsEdit')">商品列表</a></li>
					</ul>
				</div>
				<div title="订单管理" iconCls="icon-ok"
					style="overflow: auto; padding: 10px;">
					<ul>
						<li><a href="#" class="easyui-linkbutton" onclick="addTab('订单列表','${path}/BackOrder/toOrderEdit')">订单列表</a></li>
						<li><a href="#" class="easyui-linkbutton" onclick="addTab('订单退款处理','${path}/BackOrder/getCanOrder')">订单退款处理</a></li>
					</ul>
				</div>
			</div>
		</div>
		<div id="content" class="easyui-tabs" region="center" title="管理详情"></div>
	</div>
	
</body>
</html>